package com.bmslz.monitor.base.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @Description: 元数据
 * @Author: bobo
 * @Date:   2025-08-04
 * @Version: V1.0
 */
@Data
@TableName("m_project_data")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="m_project_data对象", description="元数据")
public class ProjectData {
	/**用户id*/
	@ApiModelProperty(value = "用户id")
	private String userId;
	/**项目编号*/
    @ApiModelProperty(value = "项目编号")
	private String projectNo;
	/**项目Id*/
	@ApiModelProperty(value = "项目Id")
	private String projectId;
	/**项目名称*/
	@ApiModelProperty(value = "项目名称")
	private String projectName;
	/**测点key*/
    @ApiModelProperty(value = "测点key")
	private String attKey;
	/**测点名称*/
	@ApiModelProperty(value = "测点名称")
	private String attName;
	/**测点value*/
	@ApiModelProperty(value = "测点value")
	private String attValue;
	/**心跳时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "心跳时间")
	private Date heartTime;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
}
